@extends('layouts.layout')

@section('title', '添加用户')

@section('CONTENT')
    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title">添加用户</h3>
        </div>
        <!-- /.box-header -->
        <!-- form start -->
        <form role="form" action="{{ route('register') }}" method="post">
            {{ csrf_field() }}
            <div class="box-body">
                <div class="form-group">
                    <label for="name">姓名</label>
                    <input type="text" name="name" value="{{ old('name') }}" class="form-control" id="name" placeholder="姓名">
                </div>
                <div class="form-group">
                    <label for="email">邮箱</label>
                    <input type="text" name="email" value="{{ old('email') }}" class="form-control" id="email" placeholder="邮箱">
                </div>
                <div class="form-group">
                    <label for="cn_nickname">中文昵称</label>
                    <input type="text" name="cn_nickname" value="{{ old('cn_nickname') }}" class="form-control" id="cn_nickname" placeholder="中文昵称">
                </div>
                <div class="form-group">
                    <label for="en_nickname">英文昵称</label>
                    <input type="text" name="en_nickname" value="{{ old('en_nickname') }}" class="form-control" id="en_nickname" placeholder="英文昵称">
                </div>
                <div class="form-group">
                    <label for="mobile_phone">手机号</label>
                    <input type="text" name="mobile_phone" value="{{ old('mobile_phone') }}" class="form-control" id="mobile_phone" placeholder="手机号">
                </div>
                <div class="form-group">
                    <label for="qq_no">QQ号</label>
                    <input type="text" name="qq_no" value="{{ old('qq_no') }}" class="form-control" id="qq_no" placeholder="QQ号">
                </div>

                <div class="form-group">
                    <label for="password">密码</label>
                    <input type="password" name="password" value="{{ old('password') }}" class="form-control" id="password" placeholder="密码">
                </div>
                <div class="form-group">
                    <label for="password_confirmation">确认密码</label>
                    <input type="password" name="password_confirmation" value="{{ old('password_confirmation') }}" class="form-control" id="password_confirmation" placeholder="确认密码">
                </div>
            </div>
            <div class="box-footer">
                <button type="submit" class="btn btn-primary">保存</button>
                <button type="button" onclick="javascript:window.history.back()" class="btn btn-default">返回</button>
            </div>
        </form>
    </div>
@endsection